home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 April
/
EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso
/
EARCD
/
comm
/
tcp
/
ChatBox1_153.lha
/
ChatBox
/
Rexx
/
serv.cb
< prev
Wrap
Text File
|
1996-04-20
|
2KB
|
53 lines
/*) Server selector v1.0 for Grapevine 2.0
\\\ Written by Josef Faulkner (panther@gate.net) IRC: Arexx
///
\\\ Requires WB3.0 or higher to run. Bug me and ill make it work with 2.0
///
\\\ Leaves the multiview window open until you close it. Not sure
/// how I can find out what copy of multiview it is to send an arexx
\\\ command to close it.
(*/
options results
if ~show('L','rexxsupport.library') then if ~addlib('rexxsupport.library',0,-30,0) then do
'echo You need rexxsupport.library version 30 or greater in libs:'
exit 10
end
addr=address()
address value addr
call delete('T:cb.servfile')
CMD '/log t:cb.servfile'
CMD '/links'
call delay(500)
CMD '/log close'
call open(1,'t:cb.servfile',r)
call delete('T:servfile.guide')
call open(2,'t:servfile.guide',w)
call writeln(2,'@database serverchoose')
call writeln(2,'@node "Main" "Server Chooser for ChatBox"')
call writeln(2,'@{b}Server Chooser for ChatBox@{ub}')
call writeln(2,'by Josef Faulkner (panther@gate.net)')
call writeln(2,'modified by Sami Itkonen (Sami.Itkonen@hut.fi)')
call writeln(2,'')
call writeln(2,'@{b}IRC Servers:@{ub}')
do until eof(1)
text=readln(1)
if word(text,1)='[LINKS]>' then do
server=word(text,2)
if server~='*' then do
call writeln(2,'@{"'server'" rxs "address '''addr''' CMD ''/server 'server'''"}')
end
end
end
call close(1)
call writeln(2,'@endnode')
call close(2)
address command 'multiview t:servfile.guide pubscreen ChatBox.1'
/* call delete('t:servfile.guide')*/
/*
@{"foo.undernet.org" rxs "address GVREXX 'server foo.undernet.org'"}
*/